<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>名片</title>
    <style>
        * {
            box-sizing: border-box;
        }
        html {
            height: 100%;
        }
        body {
            background-image: url(../images/bg.jpg);
            background-size: 100% 100%;
        }
        .card {
            height: 350px;
            width: 550px;
            background-color: white;
            border-radius: 10px;
            position: relative;/*relative 相对定位*/
            left: 500px;
            top: 200px;
        }
        .logo {
            height: 100px;
            width: 300px;
            background-image: url(../images/logo.png);
            background-size: 100% 100%;
            position: absolute;/*父相子绝*/
            left: 20px;
            top: 20px;
        }

        .text {
            position: absolute;
            top: 120px;
        }

        li {
            list-style: none;
            margin: 15px 0;
        }

        .headImage {
            height: 160px;
            width: 160px;
            background-image: url(../images/head.png);
            background-size: 100% 100%;
            border-radius: 50%;
            position: absolute;
            left: 320px;
            top: 130px;
        }

    </style>
</head>
<body>
    <div class="card">
        <div class="logo"></div>
        <div class="text">
            <ul>
                <li>
                    <h3> 姓名：张三</h3>
                </li>
                <li>职位：Java讲师</li>
                <li>手机号：88888</li>
                <li>邮箱：8888@qq.com</li>
                <li>QQ:88888</li>
            </ul>
        </div>
        <div class="headImage"></div>
    </div>
</body>
</html>